package com.hanson.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.util.Date;

/**
 * @description: 传输日志记录
 * @classname: ConveyLog
 * @author: HansonLee
 * @create: 2024/03/26
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Accessors(chain = true)
@Entity
@Table(name = "tb_convey_log")
public class TbConveyLog {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @Column(name = "type")
    private String type;

    @Column(name = "company")
    private String company;

    @Column(name = "log",columnDefinition ="TEXT")
    private String log;

    @Column(name = "status",columnDefinition ="tinyint")
    private Integer status;

    @Column(name = "createTime")
    private Date createTime;

    @Column(name = "stringTime")
    private String stringTime;

    @Column(name = "createBy")
    private String createBy;
}
